import { createApp } from 'vue'
import type { Plugin } from 'vue'
// import './style.css'
//引入模板的全局的样式
import '@/styles/index.scss'
import App from '@/App.vue'
import elementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import router from './router'
import pinia from './store' //大仓库
import zhCn from 'element-plus/es/locale/lang/zh-cn'
//import zhCn from 'element-plus/dist/locale/zh-cn.mjs'

const app = createApp(App)

// 下一行代码：
app.use(elementPlus)

//svg插件配置代码
import 'virtual:svg-icons-register'

// //注册全局SvgIcon组件
// import SvgIcon from '@/components/SvgIcon/index.vue'
// app.component('SvgIcon',SvgIcon)
//注册全局组件
import globalComponents from '@/components'

app.use(globalComponents)

app.use(pinia) //注册大仓库

// 下一行代码：
app.use(router)

app.mount('#app')
